package com.his.dictcode.dao;

import com.his.dictcode.entity.DictCode;
import com.his.dictcode.entity.DictCodeType;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.*;

/**
 * @Author zhoufei
 * @Date 2020/2/4
 */
@Repository
public interface DictCodeMapper {

    //全量插入一条数据
    void insertAllColumn(DictCode dictCode);
    //根据主键codeid+codetypeid删除数据
    void deleteById(DictCode dictCode);
    //根据入参非空列动态查找数据
    List<DictCode> selectByEntity(DictCode dictCode);
    //根据主键更新数据
    void updateById(DictCode dictCode);

    List<DictCode> selectCodeByTpyeId(Map params);

    List<DictCode> selectByPrkey(DictCode dictCode);
}